package cn.kgc.dao;

import cn.kgc.pojo.Supplier;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SupplierMapper {

    //查询所有供货商
    public List<Supplier> queryAllSupplier(@Param("supplierId")String supplierId,@Param("supplierName")String supplierName,@Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize);

    //添加供货商
    public Integer addSupplier(Supplier supplier);

    //查询指定供货商
    public Supplier queryByIdSupplier(@Param("id")Integer id);

    //修改供货商
    public Integer updateSupplier(@Param("supplierId")String supplierId);

    //供货商无效化
    public Integer deleteSupplierId(@Param("supplierId")String supplierId);

    


}
